import Http from '@/http'

export function appCategoryApi(){
    return Http.get('apps/category')
}


export function queryAppsApi(id){
    return Http.get('apps/list/' + id)
}

export function queryHistoryAppsApi(id){
    return Http.get('apps/history/' + id)
}


export function recommendAppsApi(size){
    return Http.get('apps/recommend?size=' + size)
}


export function homeAppsApi(size){
    return Http.get('apps/home?size=' + size)
}

export function visitReportApi(id) {
    return Http.post('apps/visit/' + id)
}

export function searchApi(key) {
    return Http.get('apps/search?key=' + key)
}